package cn.cls;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class testSet {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Set set=new HashSet();
		for(int i=0;i<10;i++)
			set.add(Integer.valueOf(i));
		
		System.out.print(set);
		
		Iterator itr=set.iterator();
		while(itr.hasNext())
			System.out.println(itr.next());
	}

}
